package com.buercorp.wangyu.common;

public class StudentObj {
    // 类
    private String name;
    private int age;

    // 如果我们没有写任何构造方法
    // 虚拟机会给我们创建一个空参构造方法
    public StudentObj() {
        System.out.println("look这句执行了吗");
    }

    public StudentObj(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
